﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace EFCoreBest.Domain
{
    public class Order : Entity
    {

        [Required]
        public int UserId { get; set; }

        public User User { get; set; }

        public virtual ICollection<OrderItem> Items { get; set; }
    }
}